package decoratorpattern;
/**
 * 手机装饰者具体实现类-税收
 * MobileTaxDecorator.java
 * @author yaojinshan
 * @since 2017年6月19日 上午11:57:21
 *
 */
public class MobileTaxDecorator extends MobileDecorator {
	
	private String taxValue;//税收值

	public MobileTaxDecorator(Mobile mobileDecorator,String taxValue) {
		super(mobileDecorator);
		this.taxValue = taxValue;
	}

	@Override
	public void mobileName() {
		mobileDecorator.mobileName();
		System.out.println("手机税收：" + taxValue );;
	}
}
